<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/_include.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>section</title>
</head>
<body>
<h1>欢迎来到 ${map.section.name}</h1>
<a href="${map.section.sectionId}/article">发表帖子</a>
<%--todo--%>
<table border="1">
    <tr>
        <th>topicId</th>
        <th>title</th>
        <th>lastModifiedTime</th>
        <th>viewNum</th>
        <th>replyNum</th>
        <th>userId</th>
        <th>进入</th>
    </tr>
    <c:forEach items="${map.topicList}" var="topic">
        <tr>
            <td><c:out value="${topic.topicId}"/></td>
            <td><c:out value="${topic.title}"/></td>
            <td><c:out value="${topic.lastModifiedTime}"/></td>
            <td><c:out value="${topic.viewNum}"/></td>
            <td><c:out value="${topic.replyNum}"/></td>
            <td><c:out value="${topic.userId}"/></td>
            <td><a href='../topic/${topic.topicId}'>进入</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
